package com.dream.libxrec.encode.video;

import android.media.MediaCodec;
import android.media.MediaFormat;

import java.nio.ByteBuffer;

public interface IVideoEncoderListener {
    public void onFormat(MediaFormat format);
    void onFrame(ByteBuffer buffer,
                 MediaCodec.BufferInfo info);
    void onFrame(boolean isIFrame,byte[] buffer,
                 int size,long pts);
}